import numpy as np
import os


def gen_trunc_data():
    os.makedirs("./input", exist_ok=True)
    os.makedirs("./output", exist_ok=True)
 
    input_x = np.random.uniform(-100, 100, [8, 2048]).astype(np.float16)

    golden = np.trunc(input_x).astype(np.float16)

    input_x.tofile("./input/input_x.bin")
    golden.tofile("./output/golden.bin")


if __name__ == "__main__":
    gen_trunc_data()
